package com.example.springbootdemo.service;

import com.example.springbootdemo.entity.EsContent;
import org.dromara.easyes.core.biz.EsPageInfo;
import org.dromara.easyes.core.conditions.select.LambdaEsQueryWrapper;
import org.elasticsearch.client.indices.GetIndexResponse;

import java.util.List;

public interface EsService {
    Boolean createIndex();

    Integer insert(EsContent document);

    List<EsContent> selectList(LambdaEsQueryWrapper<EsContent> wrapper);

    GetIndexResponse getIndex();

    EsPageInfo<EsContent> pageQuery(LambdaEsQueryWrapper<EsContent> wrapper, int pageNum, int pageSize);

}
